[XEN] Add const attribute to elf_sanity_check() parameter on all arches.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 23 Dec 2006 09:40:18 +0000 (09:40 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 23 Dec 2006 09:40:18 +0000 (09:40 +0000)
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
xen/arch/ia64/xen/domain.c
xen/arch/powerpc/domain_build.c

index 8406c127089ab6bbe251e8c3c2466adc0706fdb9..cd43c13d35f144992384e576cc02a5c551f63386 100644 (file)
@@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d, xen_domctl_shadow_op_t *sc)
 #endif
 
 // see arch/x86/xxx/domain_build.c
-int elf_sanity_check(Elf_Ehdr *ehdr)
+int elf_sanity_check(const Elf_Ehdr *ehdr)
 {
        if (!(IS_ELF(*ehdr)))
        {
index 12d9c5776ef7ade7d5ec9329eac5f9b9417f4615..0f283678f801148d9aca80a4c6d42db2725309b9 100644 (file)
@@ -51,7 +51,7 @@ integer_param("dom0_max_vcpus", opt_dom0_max_vcpus);
 static unsigned int opt_dom0_shadow;
 boolean_param("dom0_shadow", opt_dom0_shadow);
 
-int elf_sanity_check(Elf_Ehdr *ehdr)
+int elf_sanity_check(const Elf_Ehdr *ehdr)
 {
     if (IS_ELF(*ehdr))
         /* we are happy with either */